<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/business/include/doctype.jsp" %>
<script type="text/javascript">
function formCheck() {
	var frm = document.form;
	if(trim(frm.title.value) == "") {
		alert("제목을 입력하세요.");
		frm.title.value="";
		frm.title.focus();
		return false;
	}
	if(trim(frm.htmlbody.value) == "") {
		alert("내용을 입력하세요.");
		frm.htmlbody.value="";
		frm.htmlbody.focus();
		return false;
	}
	if (confirm('질문을 등록하시겠습니까?')) {
		return true;
	}
	return false;
}
</script>
</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>코오롱지식인</h1>
			<!-- <p class="back"><img src="${requestScope.contextPath}/images/btn/btn_back.gif" alt="뒤로" onclick="history.back(-1);" /></p> -->
		</div><!-- // header -->
		<div class="content">
			<div class="news knowledge">
				<ul>
					<li><span class="bold">질문하기</span></li>
				</ul>
				<form name="form" action="${requestScope.contextPath}/business/mKolonInt/mKolonIntWrite.do" method="post" onsubmit="return formCheck();" >
				<input type="hidden" name="strMode" value="write" />
				<input type="hidden" name="CompanyCD" value="${sessionScope.SESSION_USER_INFO.CompanyCD}" />
					<fieldset>
						<legend>지식인 질문하기</legend>
						<h4><label for="title">제목</label></h4>
						<input type="text" name="title" id="title" class="intxt2" />
					</fieldset>
				<h4>질문내용</h4>
				<textarea class="comment" cols="" rows="10" name="htmlbody"></textarea>
				<div class="btn_area2">
					<p><input type="image" src="${requestScope.contextPath}/images/btn/register.gif" alt="등록" />&nbsp;&nbsp; <img src="${requestScope.contextPath}/images/btn/btn_reset.gif" alt="취소" onclick="history.back(-1);" /></p>
				</div>
				</form>
			</div>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>